package com.zlll.winner.mapper.mall;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.mall.MallOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zlll.winner.business.vo.mall.MallOrderGoodsDetailVo;
import com.zlll.winner.business.vo.mall.MallOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单
 * Mapper 接口
 * </p>
 *
 * @author qsx
 * @since 2019-10-08
 */
public interface MallOrderMapper extends BaseMapper<MallOrder> {
    List<MallOrderVo> getMallOrderByCondition( @Param("account") String account,@Param("goodsName") String goodsName,@Param("orderNo") String orderNo, @Param("status") Integer status,@Param("startTime") Long startTime,@Param("endTime") Long endTime, IPage<MallOrderVo> page);
    List<MallOrderVo> getMallOrderVoById(@Param("id") Long id);

    List<MallOrderGoodsDetailVo> getMallOrderSelectGoodsDetail(@Param("goodsId") Long goodsId,@Param("account")String account );

    List<MallOrderGoodsDetailVo> getMallOrderSeckillGoodsDetail(@Param("id") Long id,@Param("account")String account );

}
